package vip.xiaonuo.vehicle.vehicleTraffic.service;

import vip.xiaonuo.vehicle.vehicleTraffic.dto.HeartBeatDTO;
import vip.xiaonuo.vehicle.vehicleTraffic.dto.PlateResult;

/**
 * 车辆通行服务
 *
 * @author cad
 * @date 2023/03/22
 */
public interface VehicleTrafficService {

    /**
     * 注册设备和心跳
     *
     * @param heartBeatDTO 心跳dto
     */
    public void registerAndHeartBeat(HeartBeatDTO heartBeatDTO);

    /**
     * 判断通行
     *
     * @param plateRuselt 设备传递参数
     * @return {@link Boolean}
     */
    public Boolean checkVehicleTraffic(PlateResult plateRuselt);
}
